<html>
<head>
	<meta name='layout' content='main'/>
	<title><g:message code="springSecurity.login.title"/></title>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'login.css')}" type="text/css">
</head>

<body>

<div id="main">
    <div id="title">光交信息资源管理系统</div>
    <div id="loginform">
        <form action='${postUrl}' method='POST' id='mainloginForm' class='cssform' autocomplete='off'>
            <table id="logintable" border="0">
                <tr height="30px"><td colspan="2" style="color: red">
                    <g:if test="${flash.message}">
                        ${flash.message}
                    </g:if>
                </td></tr>
                <tr><td align="right" width="150">帐 号:</td><td align="left"><input type='text' name='j_username' id='username'/></td></tr>
                <tr><td align="right" width="150">密 码:</td><td align="left"><input type="password" id="password" name="j_password"></td></tr>
                <tr><td align="center" colspan="2">
                    <table width="100%" border="0"><tr>
                        <td width="60px"></td>
                        <td><img src="${resource(dir: 'images', file: 'login.gif')}" onclick="javascript:$('#mainloginForm').submit()" style="cursor: pointer;"></td>
                        <td><img src="${resource(dir: 'images', file: 'reset.gif')}" onclick="javascript:$('#mainloginForm').form('clear')" style="cursor: pointer;"></td>
                    </tr></table>
                </td></tr>
            </table>
        </form>
    </div>
</div>
<script type='text/javascript'>
    <!--
    (function() {
        document.forms['mainloginForm'].elements['j_username'].focus();
    })();
    // -->
</script>
</body>
</html>
